/**
 * @filename:SysRolePermission 2025-05-27
 * @project starhub-schema  V1.0
 */
package com.starhub.engine.sys.role.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

import lombok.Data;

/**   
 * @Description:(用户角色关联表设置实体类)
 * @version: V1.0
 * @author: luosw
 */
@Data
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class SysRolePermission implements Serializable {

	private static final long serialVersionUID = 1748352855880L;

	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(name = "id" , value = "ID")
	private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(name = "roleId" , value = "角色ID")
	private Long roleId;
    
    @JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(name = "permissionId" , value = "权限ID")
	private Long permissionId;

	public SysRolePermission() {
	}

	public SysRolePermission(Long id, Long roleId, Long permissionId) {
		this.id = id;
		this.roleId = roleId;
		this.permissionId = permissionId;
	}
}
